package net.xdclass.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author lixin
 * @since 2024-08-23
 */
@Data
public class CouponRecordVO implements Serializable {

    private Long id;

    @JsonProperty("coupon_id")
    private Long couponId;

    @JsonProperty("use_state")
    private String useState;

    @JsonProperty("user_id")
    private Long userId;

    @JsonProperty("user_name")
    private String userName;

    @JsonProperty("coupon_title")
    private String couponTitle;

    @JsonProperty("start_time")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", locale = "zh", timezone = "GMT+8")
    private LocalDateTime startTime;

    @JsonProperty("end_time")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", locale = "zh", timezone = "GMT+8")
    private LocalDateTime endTime;

    @JsonProperty("order_id")
    private Long orderId;

    @ApiModelProperty(value = "抵扣价格")
    private BigDecimal price;

    @JsonProperty("condition_price")
    private BigDecimal conditionPrice;


}
